'use strict';

angular.module('app')
  .directive('appHead', [
    'cache',
    function(cache) {
      return {
        restrict: 'A',
        replace: true,
        link: function(scope) {
          scope.name = cache.get('name') || '';
        },
        templateUrl: 'view/template/head.html'
      }
    }
  ])
